//
// Created by lstudio on 2020/12/1.
//

#include "includes.h"
#include "utils.h"

//us微妙
uint64_t get_current_timestamp()
{
    uint64_t tick;
    struct timespec tp;

    clock_gettime(CLOCK_MONOTONIC, &tp);

    tick = (uint64_t)(tp.tv_sec * 1000000) + (tp.tv_nsec/1000);

    return tick;
}
